const express = require('express');
var router = express.Router();
const merchantCtrl = require('../controllers/merchant.server.controller');

router.route('/merchants')
      .get(merchantCtrl.loadActiveMerchant)//这里还需要到A端拿非1状态的商家 get /merchants?statue=[0|-1|2]

router.route('/merchant/:_id')
      .put()//更改商家评分，这里当订单数大于101，star低于5分要发JMS

router.route('/merchant')
    .get(merchantCtrl.loadFromSessionMid);

module.exports = router;